<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
<!-- Copyright 1997 The Open Group, All Rights Reserved -->

<title>attr_get</title>
</head><body bgcolor=white>
<center>
<font size=2>
The Single UNIX &reg; Specification, Version 2<br>
Copyright &copy; 1997 The Open Group

</font></center><hr size=2 noshade>
<h4><a name = "tag_002_001_348">&nbsp;</a>NAME</h4><blockquote>
attr_get, attr_off, attr_on, attr_set,
color_set,
wattr_get, wattr_off, wattr_on, wattr_set,
wcolor_set
- window attribute control functions
</blockquote><h4><a name = "tag_002_001_349">&nbsp;</a>SYNOPSIS</h4><blockquote>
<pre><code>

#include &lt;<a href="curses.h.html">curses.h</a>&gt;

int attr_get(attr_t <i>*attrs</i>, short <i>*color_pair_number</i>, void <i>*opts</i>);

int attr_off(attr_t <i>attrs</i>, void <i>*opts</i>);

int attr_on(attr_t <i>attrs</i>, void <i>*opts</i>);

int attr_set(attr_t <i>attrs</i>, short <i>color_pair_number</i>, void <i>*opts</i>);

int color_set(short <i>color_pair_number</i>, void *<i>opts</i>);

int wattr_get(WINDOW <i>*win</i>, attr_t <i>*attrs</i>, short <i>*color_pair_number</i>,
<br>
              void <i>*opts</i>);

int wattr_off(WINDOW <i>*win</i>, attr_t <i>attrs</i>, void <i>*opts</i>);

int wattr_on(WINDOW <i>*win</i>, attr_t <i>attrs</i>, void <i>*opts</i>);

int wattr_set(WINDOW <i>*win</i>, attr_t <i>attrs</i>, short <i>color_pair_number</i>,
<br>
              void <i>*opts</i>);

int wcolor_set(WINDOW <i>*win</i>, short <i>color_pair_number</i>, void <i>*opts);</i>  
</code>
</pre>
</blockquote><h4><a name = "tag_002_001_350">&nbsp;</a>DESCRIPTION</h4><blockquote>
These functions manipulate the attributes and colour of the
window rendition of the current or
specified window.
<p>
The
<i>attr_get()</i>
and
<i>wattr_get()</i>
functions obtain the current rendition of a window.
If <i>attrs</i> or <i>color_pair_number</i> is a null pointer,
no information will be obtained on the corresponding 
rendition information and this is not an error.
<p>
The
<i>attr_off()</i>
and
<i>wattr_off()</i>
functions turn off <i>attrs</i> in the current or specified window without
affecting any others.
<p>
The
<i>attr_on()</i>
and
<i>wattr_on()</i>
functions turn on <i>attrs</i> in the current or specified window without
affecting any others.
<p>
The
<i>attr_set()</i>
and
<i>wattr_set()</i>
functions set the window rendition of the current or specified window to
<i>attrs</i> and <i>color_pair_number</i>.
<p>
The
<i>color_set()</i>
and
<i>wcolor_set()</i>
functions set the window colour of the current or specified window to
<i>color_pair_number</i>.
</blockquote><h4><a name = "tag_002_001_351">&nbsp;</a>RETURN VALUE</h4><blockquote>
These functions always return OK.
</blockquote><h4><a name = "tag_002_001_352">&nbsp;</a>ERRORS</h4><blockquote>
No errors are defined.
</blockquote><h4><a name = "tag_002_001_353">&nbsp;</a>SEE ALSO</h4><blockquote>
<i><a href="attroff.html">attroff()</a></i>,
<i><a href="curses.h.html">&lt;curses.h&gt;</a></i>.
</blockquote><hr size=2 noshade>
<center><font size=2>
UNIX &reg; is a registered Trademark of The Open Group.<br>
Copyright &copy; 1997 The Open Group
<br> [ <a href="../index.html">Main Index</a> | <a href="../xshix.html">XSH</a> | <a href="../xcuix.html">XCU</a> | <a href="../xbdix.html">XBD</a> | <a href="../cursesix.html">XCURSES</a> | <a href="../xnsix.html">XNS</a> ]

</font></center><hr size=2 noshade>
</body></html>
